package com.example.test.a20240530;

import java.util.Scanner;

public class H87密码强度 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);


        final String str = in.nextLine();


        int score = 0;

        //密码长度
        if (str.length() < 4) {
            score += 5;
        } else if (str.length() < 8) {
            score += 10;
        } else
            score += 25;
//        System.out.println("长度得分score=" + score);

        //字母
        int number = 0;
        int letterU = 0;
        int letterL = 0;
        int symbol = 0;
        for (int i = 0; i < str.length(); i++) {
            final int c = (int) str.charAt(i);
            if (c >= '0' && c <= '9') {
                number++;
            } else if (c >= 'a' && c <= 'z') {
                letterL++;
            } else if (c >= 'A' && c <= 'Z') {
                letterU++;
            } else {
                symbol++;
            }
        }


        if (letterL + letterU == 0) {
            score += 0;
        } else if (letterL == 0 ^ letterU == 0) {
            score += 10;
        } else if (letterL > 0 && letterU > 0) {
            score += 20;
        }
//        System.out.println("字母得分score=" + score);

        if (number == 0) {
            score += 0;
        } else if (number == 1) {
            score += 10;
        } else score += 20;
//        System.out.println("数字得分score=" + score);


        if (symbol == 0) {
            score += 0;
        } else if (symbol == 1) {
            score += 10;
        } else score += 25;
//        System.out.println("符号得分score=" + score);


        if (symbol == 0 && number < str.length()) {
            score += 2;
        } else if (number > 0 && symbol > 0 && letterL > 0 && letterU > 0) {
            score += 5;
        } else if (number > 0 && symbol > 0 && letterL + letterU > 0) {
            score += 3;
        }
//        System.out.println("奖励得分score=" + score);


        String evaluation = "";
        if (score >= 90) {
            evaluation = "VERY_SECURE";
        } else if (score >= 80) {
            evaluation = "SECURE";
        } else if (score >= 70) {
            evaluation = "VERY_STRONG";
        } else if (score >= 60) {
            evaluation = "STRONG";
        } else if (score >= 50) {
            evaluation = "AVERAGE";
        } else if (score >= 25) {
            evaluation = "WEAK";
        } else evaluation = "VERY_WEAK";
        System.out.println(evaluation);

    }


}
